package com.task.poker.card.entity;

import com.task.poker.card.abs.Card;

/**
 * Joke Card class.
 * @author	JiDong
 * @create	November 14.2019
 */
public class JokeCard  extends Card {


    public JokeCard() {
    }

    @Override
    public void setCard(String figure) {
        if (figure.equals("black Joke")) {
            setFigure("black Joke=" + figure);
        }else if(figure.equals("red Joke")) {
            setFigure("red Joke=" + figure);
        }
    }

    public String getFigure() {
        return figure;
    }

    public void setFigure(String figure) {
        this.figure = figure;
    }
}
